{include file='common/header'}
<ol class='breadcrumb' >
      <li ><a href="{:url('admin/index/index')}">admin</a></li>
      <li ><a href="{:url('user/lst')}">message</a></li>
      <li class='active'>add</li>
</ol>
<h1 class='text-center'>添加信息</h1>
      <form   action="{:url('message/add')}" method="post" 
              style="width: 400px;margin-left: 420px;background: white;padding: 15px;" enctype="multipart/form-data"> 
         <div class='form-group has-feedback'>
            <label class='bg-success'><big>信息名</big></label>
            <input type='text' class='form-control' name='mname'>
            <p class='help-block' style='color:red;display: none'>你的用户名太短</p>
         </div>
          <div class='form-group'>
            <label class='bg-success'><big>type</big></label>
            <div class='checkbox form-control'>
                <input type='radio' name='type' value='need'  >
                   <span class="bg-danger"><big>need</big></span>
                <input type='radio' name='type' value="offer">
                   <span class="bg-danger"><big>offer</big></span>
            </div>
         </div>
         <div class='form-group'>
            <label class='bg-success'><big>分类</big></label>
            <select name='tid' class='form-control'>
                {volist name='type' id='type'}
                  <option value="{$type.id}"><big>{$type.tname}</big></option>
                {/volist}
            </select>
         </div>
          <div class='form-group has-feedback'>
            <label class='bg-success'><big>简介</big></label>
            <textarea name="des" id="" class='form-control' cols="30" rows="4" placeholder="简介"></textarea>
         </div>
         <div class='form-group' >
            <button class='btn btn-primary btn-block' style='font-size: 25px;'>submit</button>
         </div>      
     </form>
{include file='common/footer'}